AM_CPPFLAGS = -I$(srcdir)/../../include $(ICU_CPPFLAGS)
AM_LDFLAGS = $(ICU_LIBS) -lm -ldl

libfstdir = @libfstdir@

if HAVE_SCRIPT
libfst_LTLIBRARIES = libfstfarscript.la libfstfar.la
else
libfst_LTLIBRARIES = libfstfar.la
endif

libfstfar_la_SOURCES = sttable.cc stlist.cc
libfstfar_la_LDFLAGS = -version-info 0:0:0

if HAVE_SCRIPT
libfstfarscript_la_SOURCES = farscript.cc compile-strings.cc main.cc
libfstfarscript_la_LDFLAGS = -version-info 0:0:0
endif

if HAVE_BIN
bin_PROGRAMS = farcompilestrings farcreate farextract farinfo farprintstrings

farbindeps = libfstfarscript.la libfstfar.la ../../script/libfstscript.la \
             ../../lib/libfst.la 

farcompilestrings_SOURCES = farcompilestrings.cc
farcompilestrings_LDADD = $(farbindeps)

farcreate_SOURCES = farcreate.cc
farcreate_LDADD = $(farbindeps)

farextract_SOURCES = farextract.cc
farextract_LDADD = $(farbindeps)

farinfo_SOURCES = farinfo.cc
farinfo_LDADD = $(farbindeps)

farprintstrings_SOURCES = farprintstrings.cc
farprintstrings_LDADD = $(farbindeps)
endif
